Skip to content

Add GetTracksByPermalink#50

Merged
rickyrombo merged 4 commits intomainfrom
mjp-tracks-by-permalink
Apr 24, 2025
Merged

Add GetTracksByPermalink#50
rickyrombo merged 4 commits intomainfrom
mjp-tracks-by-permalink

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

On the full/tracks route, if permalinks are sent, do a pre-query to convert those into track IDs.

Adds queryMulti which supports multiple query params.

Note: The query here is a bit weird in order to leverage indexes - it gets all matching track routes with any matching slug and any matching handle, which could cause overlap if two users have the same slug for a track of theirs. So then it filters by actual permalinks (which is slow, but since the indexes already filtered down the list, should be fast).

Copy link
Copy Markdown
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice nice nice

Comment thread api/v1_tracks.go
@rickyrombo rickyrombo merged commit c1a36ef into main Apr 24, 2025
2 checks passed
@raymondjacobson raymondjacobson deleted the mjp-tracks-by-permalink branch April 24, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants